package tech.aistar.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tech.aistar.service.IUserService;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/5/10 3:06 下午
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private IUserService userService;

    @GetMapping
    public String add(){
        userService.add();
        return "ok";
    }
}
